<script>
  import Test from "$lib/demo/test.svelte"
  import Toaster from "$lib/demo/toaster.svelte"

  export let data
  const { products } = data
</script>

<h1>Shop</h1>
{#each products as product}
  <h2>
    <a href="/{product.id}" data-sveltekit-prefetch>
      {product.title}
    </a>
  </h2>
  <p>{product.description}</p>
{/each}
<Toaster /> <br />
<Test />
